package com.zkyc.framework.common.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * (ColumnData)实体类
 *
 * @author rxc
 * @since 2022-10-27 11:45:14
 */
@TableName("web_column_data")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ColumnData {
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 人名
     */
    private String personName;
    /**
     * 职位
     */
    private String job;
    /**
     * 介绍
     */
    private String introduce;
    /**
     * 摘要
     */
    private String contentAbstract;
    /**
     * 封面
     */
    private String cover;
    /**
     * 图片链接
     */
    private String imgAddress;
    /**
     * 标题
     */
    private String title;
    /**
     * 副标题
     */
    private String subheading;
    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 状态 1.已发布 0未发布
     */
    private Integer status;
    /**
     * 栏目id
     */
    private Integer columnId;
    /**
     * 相关组织
     */
    private Integer centerId;

    // private Integer tagId;
    /**
     * 是否跳转
     */
    private Integer jumpOrNot;
    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    /**
     * 排序数
     */
    private Long orderNum;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    // @TableField(fill = FieldFill.INSERT)
    private Date publishTime;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdated;

    // private String websiteId;

    private String originalContent;
    private String path;

    @TableField(exist = false)
    private List<File> uploadImg;
    @TableField(exist = false)
    private List<File> uploadVideo;
    @TableField(exist = false)
    private List<File> attachment;
    @TableField(exist = false)
    private List<List<Integer>> tagId;
    @TableField(exist = false)
    private List<Long> fileIdList;
    @TableField(exist = false)
    private List<Integer> refColumnIdList;
    @TableField(exist = false)
    private Integer refColumnDataId;
    @TableField(exist = false)
    private List<File> file;
    @TableField(exist = false)
    private Integer hitNumber;
}
